package day0926;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
//mark
public class Ques1020Bubble {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = 0;
		List<Integer> scoreList = new ArrayList<Integer>();
		while(scan.hasNext()){
			n = scan.nextInt();
			for(int i = 0;i < n;i++){
				scoreList.add(scan.nextInt());
			}
			int temp = 0;
			for(int i = 0;i < scoreList.size() - 1;i++){
				for(int j = i + 1;j < scoreList.size();j++){
					if(scoreList.get(i) < scoreList.get(j)){
						temp = scoreList.get(j);
						scoreList.set(j, scoreList.get(i));
						scoreList.set(i,temp);
					}
				}
			}
			for(int i : scoreList){
				System.out.println(i);
			}
		}
	}	
}
